package com.sq.partner.manager.dao;

import java.util.HashMap;
import java.util.Map;

import com.sq.partner.manager.mybatis.model.FacadeNewPayment;
import com.sq.partner.manager.mybatis.model.FacadePayment;

/**
 * 集中收款平台支付Dao接口
 * 
 * @author zhouxiuxiu
 *
 */
public interface FacadeNewPaymentDao extends BaseDao {
    /**
     * 插入支付信息
     * 
     * @param payment
     * @throws Exception
     */
    public void saveFacadeNewPayment(FacadeNewPayment payment) throws Exception;

    /**
     * 生成支付流水号
     * 
     * @param stagNo
     * @return
     * @throws Exception
     */
    public String findFacadeNewPayByPayId(String payId) throws Exception;

    /**
     * 取得收付款信息
     * 
     * @param map
     * @return
     * @throws Exception
     */
    public FacadeNewPayment queryNewPayment(HashMap<String, String> map)
            throws Exception;
    
    /**
     * 更新收款表
     * 
     * @param facadeNewPayment
     * @return
     * @throws Exception
     */
    public boolean updateFacadeNewPay(FacadeNewPayment facadeNewPayment)
            throws Exception;
    
    /**
     * 查询暂存单号最后一次支付记录 helina 20190313
     * 
     * @param payid
     * @return
     * @throws Exception
     */
    public FacadeNewPayment queryFacadeNewPaymentByPayidTheLatestInsertTime(
            String payid) throws Exception;
    /**
     * 对接新支付平台缴费确认失败后查询缴费确认信息 查询新支付表 20190418 helina
     * @param map
     * @return
     * @throws Exception
     */
    public Map<String, Object> queryNewConfirmAgainMessage(Map<String,Object> map) throws Exception;
}
